package business.report.impl;

import business.report.InvestmentContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.InvestmentContract;
import report.domain.InvestmentContractCriteria;
import report.mapper.InvestmentContractMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "investmentContractService")
public class InvestmentContractServiceImpl implements InvestmentContractService{
    @Autowired
    InvestmentContractMapper investmentContractMapper;

    @Override
    public List<InvestmentContract> getInvestmentContract() {
        InvestmentContractCriteria criteria = new InvestmentContractCriteria();
        criteria.createCriteria().getAllCriteria();
        return investmentContractMapper.selectByExample(criteria);
    }
}
